package com.guanyong.dao;


import com.guanyong.model.VideoBarrageModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by mxk on 2017/5/26.
 * 点击日志
 */
public interface IVideoBarrageDaoMapper {

    int insert(VideoBarrageModel record);


    @Select("SELECT * FROM t_ad_videobarrage WHERE f_classtype=#{classtype}  and f_objectid=#{objectid} " +
            " and f_barragetime>=#{btime} AND " +
            "f_barragetime<#{etime}")
    @ResultMap("VideoBarrageResultMap")
    List<VideoBarrageModel> GetVideoBarrageModelList( @Param("classtype") Integer classtype,
                                                      @Param("objectid")String objectid,
                                                      @Param("btime") String btime,
                                                      @Param("etime") String etime);
}
